import 'package:boss/ui/page/commodity/material/page/materialDetail/material_detail_page.dart';
import 'package:boss/ui/page/index/model/bottom_navigation.dart';
import 'package:boss/ui/page/index/widget/custom_bottom_navigation_bar.dart';
import 'package:flutter/material.dart';

class MaterialFooter extends StatelessWidget {
  final List<String> routers = [MaterialDetailPage.pageName];

  final List<BottomNavigation> navs = [
    BottomNavigation(
      title: '新增',
      icon: 'assets/image/plus_light_icon.png',
    ),
  ];

  @override
  Widget build(BuildContext context) {
    return CustomBottomNavigationBar(
      items: navs,
      onSelectChanged: (index) {
        Navigator.pushNamed(context, routers[index]);
      },
    );
  }
}
